package com.info.zhiduoduo.repository.entity.company;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 企业协议表
 */
@Data
@Accessors(chain = true)
@TableName("zdd_company_agreement")
public class CompanyAgreement extends Model<CompanyAgreement> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer Id;

    @ApiModelProperty("企业id")
    @TableField("compid")
    private Integer compid;

    @ApiModelProperty("注册协议")
    @TableField("registration_agreement")
    private String registrationAgreement;

    @ApiModelProperty("创建时间")
    private Date createtime;

    @ApiModelProperty("修改时间")
    @TableField(update = "now()")
    private Date updatetime;

    @Override
    protected Serializable pkVal() {
        return this.Id;
    }

}
